﻿using System.ServiceProcess;
using AgentListener.DataProcessing;
using Common.Configuration;

namespace lervice
{
    public partial class ListenerService : ServiceBase
    {
        private Listener _listener;

        public ListenerService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            //_listener = new Listener(ConfigurationManager.Instance.Load<ListenerConfig>());
            //_listener.Start();
        }

        protected override void OnStop()
        {
            _listener.Stop();
        }

        protected override void OnContinue()
        {
            _listener.Start();
        }

        protected override void OnPause()
        {
            _listener.Stop();
        }
    }
}
